<style>
    .exception {
        margin-top: 20px
    }

    .exception .message {
        padding: 12px;
        border: 1px solid #ddd;
        border-bottom: 0 none;
        line-height: 18px;
        font-size: 16px;
        border-top-left-radius: 4px;
        border-top-right-radius: 4px;
        font-family: Consolas, "Liberation Mono", Courier, Verdana, "微软雅黑", serif
    }

    .exception .code {
        float: left;
        text-align: center;
        color: #fff;
        margin-right: 12px;
        padding: 16px;
        border-radius: 4px;
        background: #999
    }

    .exception .source-code {
        padding: 6px;
        border: 1px solid #ddd;
        background: #f9f9f9;
        overflow-x: auto
    }

    .exception .source-code pre {
        margin: 0;
        line-height: 0.3;
    }

    .exception .source-code pre ol {
        margin: 0;
        color: #4288ce;
        display: inline-block;
        min-width: 100%;
        box-sizing: border-box;
        font-size: 14px;
        font-family: "Century Gothic", Consolas, "Liberation Mono", Courier, Verdana, serif;
        padding-left: 40px;
    }

    .exception .source-code pre li {
        border-left: 1px solid #ddd;
        height: 18px;
        line-height: 18px;
        list-style-type: decimal;
    }

    .exception .source-code pre code {
        color: #333;
        height: 100%;
        display: inline-block;
        border-left: 1px solid #fff;
        font-size: 14px;
        font-family: Consolas, "Liberation Mono", Courier, Verdana, "微软雅黑", serif
    }

    .exception .trace {
        padding: 6px;
        border: 1px solid #ddd;
        border-top: 0 none;
        line-height: 16px;
        font-size: 14px;
        font-family: Consolas, "Liberation Mono", Courier, Verdana, "微软雅黑", serif
    }

    .exception .trace h2:hover {
        text-decoration: underline;
        cursor: pointer
    }

    .exception .trace ol {
        margin: 12px
    }

    .exception .trace ol li {
        padding: 2px 4px
    }

    .exception div:last-child {
        border-bottom-left-radius: 4px;
        border-bottom-right-radius: 4px
    }

    .exception h1 {
        margin: 10px 0 0;
        font-size: 28px;
        font-weight: 500;
        line-height: 32px
    }

    .exception h2 {
        color: #4288ce;
        font-weight: 400;
        padding: 6px 0;
        margin: 6px 0 0;
        font-size: 18px;
        border-bottom: 1px solid #eee
    }

    .exception h3 {
        margin: 12px;
        font-size: 16px;
        font-weight: bold
    }

    .line-error {
        background: #f8cbcb;
    }

</style>


<div class="layui-card" id="main-visible-area">

    <div class="layui-card-body">
        <div class="exception">
            {% if see_config('debug') %}
                <div class="message">
                    <div class="info">
                        <div>
                            <h2>#0 [{{ severity }}]
                                <abbr title="{{ class.namespace }}">{{ class.name }}</abbr>
                                in
                                <a class="toggle" title="{{ file }} line {{ line }}">
                                    {{ file }}
                                    line {{ line }}
                                </a>
                            </h2>
                        </div>
                        <div>
                            <h1>
                                {{ message }}
                            </h1>
                        </div>
                    </div>
                </div>
                <div class="source-code">
                    <pre><ol start="{{ source.first }}">{% for value in source.source %}{% if value %}
                                <li
                                class="line-{{ loop.index+source.first-1 }} {% if loop.index+source.first-1 == line %} line-error {% endif %}">
                                <code>{{ value }}</code></li>{% endif %}{% endfor %}</ol></pre>
                </div>

            {% else %}

                <div class="message">
                    <div class="info">
                        <div>
                            <h2>
                                <a class="toggle" title="{{ file }} line {{ line }}">
                                    trace id: {{ d|date("Ymd") }}{{ random() }}
                                </a>
                            </h2>
                        </div>
                        <div style="width: 380px;margin-top: 30px;" id="feedback-bug">
                            <button type="button" class="layui-btn layui-btn-normal layui-btn-fluid">点击进行反馈
                            </button>
                        </div>
                    </div>
                </div>

            {% endif %}
        </div>
    </div>
</div>




